<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body onload="init()">
    <div class="layui-form layuimini-form" lay-filter="form1">
        <div class="layui-form-item  layui-hide">
            <label class="layui-form-label required">规则id</label>
            <div class="layui-input-block">
                <input type="text" name="rule_uid" value="" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">规则名称</label>
            <div class="layui-input-block">
                <input type="text" name="rule_name" placeholder="请输入规则名称" value="" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">经销商</label>
            <div class="layui-input-block">
                <select lay-filter="dealer_id" id="dealer_id" name="dealer_id">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">导入模板</label>
            <div class="layui-input-block">
                <select lay-filter="temp_name" id="temp_name" name="temp_name">
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea name="remark" class="layui-textarea" placeholder="请输入"></textarea>
            </div>
        </div>
    </div>

    <div class="layui-form layuimini-form" lay-filter="form2">
        <div class="layui-form-item">
            <label class="layui-form-label">规则映射</label>
            <div class="layui-input-block">
				<table class="layui-table">
					<thead>
						<tr>
                            <th>序号</th>
							<th>系统字段</th>
							<th>导入字段</th>
						</tr>
					</thead>
					<tbody id="mapping">

					</tbody>
				</table>
            </div>
        </div>
    
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
            </div>
        </div>
    </div>
</div>
<script src="../../lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<!-- <script src="../../js/jquery.js" charset="utf-8"></script> -->
<script src="../../js/MapRules-add.js" charset="utf-8"></script>
</body>
</html>